<?php
declare(strict_types=1);

namespace Service\ChannelService;
use Service\BaseService;
use App\Model\BbcModel\StoreConfig;
class StoreConfigService extends BaseService
{
    /**
     * 获取配置
     * @param string $code
     * @param int $mn_sid
     */
    public function getConfig( string $code ,int $mn_sid)
    {
        $data = StoreConfig::instance()->info(['code' => $code, 'mn_sid' => $mn_sid, 'status' => 1]);
        return isset($data['value'])?@json_decode($data['value'], true):[];
    }
}